﻿@model SportsStore.Domain.Entities.Document

@{
    ViewBag.Title = "AddDocument";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>AddDocument</h2>

@using (Html.BeginForm("AddDocument", "Document", FormMethod.Post, new {enctype = "multipart/form-data"}))
{
    @Html.EditorForModel()
    <input type="hidden" name="productId" value="@Model.ProductId"/>
    <input type="file" name="file"/>
    <input type="submit" value="Add"/>
}
@Html.ActionLink("返回","Index",new{productId = @Model.ProductId})
